package com.ywjt.platformbusiness.classify.adapter;

import androidx.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.ywjt.platformbusiness.R;
import com.ywjt.platformbusiness.store.model.GoodsClassOneModel;
import com.ywjt.platformbusiness.store.model.StoreSecondClassifyModel;

import java.util.List;

public class GoodsTypeAdapter extends BaseQuickAdapter<StoreSecondClassifyModel.ResultDTO, BaseViewHolder> {

    public GoodsTypeAdapter(@Nullable List<StoreSecondClassifyModel.ResultDTO> data) {
        super(R.layout.item_flow, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, StoreSecondClassifyModel.ResultDTO item) {
        helper.setText(R.id.text,item.getName());
    }
}
